package com.lordjoe.collectiveintelligence.data;

/**
 * com.lordjoe.collectiveintelligence.data.DifferenceDistanceMetric
 *
 * @author Steve Lewis
 * @date May 12, 2009
 */
public class DifferenceDistanceMetric implements IDistanceMetric<Boolean>
{
    public static DifferenceDistanceMetric[] EMPTY_ARRAY = {};
    public static Class THIS_CLASS = DifferenceDistanceMetric.class;

    public double getDistance(Boolean t1, Boolean t2)
    {
        if(t1 == t2)
            return 0;
        else
            return 1;
    }
}
